import request from '@/utils/request'

// 查询商品行动点管理列表
export function listActionPoint(query) {
  return request({
    url: '/business/actionPoint/list',
    method: 'get',
    params: query
  })
}

// 查询商品行动点管理详细
export function getActionPoint(id) {
  return request({
    url: '/business/actionPoint/' + id,
    method: 'get'
  })
}

// 新增商品行动点管理
export function addActionPoint(data) {
  return request({
    url: '/business/actionPoint',
    method: 'post',
    data: data
  })
}

// 修改商品行动点管理
export function updateActionPoint(data) {
  return request({
    url: '/business/actionPoint',
    method: 'put',
    data: data
  })
}

// 删除商品行动点管理
export function delActionPoint(id) {
  return request({
    url: '/business/actionPoint/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/actionPoint/export',
    method: 'post',
    data: data
  })
}
